Merge pull request #819 from mshamsrainey/bugfix/816-actions-custom-icons

#816: Fixed Logic for Custom Icons in Action Field
This commit is contained in:
Sidney Alcantara
2022-09-26 16:46:07 +10:00
committed by GitHub
2 changed files with 13 additions and 3 deletions

View File

@@ -36,9 +36,9 @@ Connect to your database, manage data in table-UI with role based access control
Set up Rowy on your Google Cloud Platform project with this easy deploy button.
[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.rowy.app/)
[<img width="250" alt="Guided quick start button" src="https://user-images.githubusercontent.com/307298/185548050-e9208fb6-fe53-4c84-bbfa-53c08e03c15f.png">](https://rowy.app/)
https://deploy.rowy.app/
https://rowy.app
## Documentation
@@ -91,7 +91,7 @@ https://user-images.githubusercontent.com/307298/157185793-f67511cd-7b7b-4229-95
Set up Rowy on your Google Cloud project with this one-click deploy button. Your data and cloud functions stay on your own Firestore/GCP.
[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.rowy.app/)
[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://rowy.app/)
The one-click deploy makes the process of setting up easy with a step by step
guide and ensures your project is setup correctly.

View File

@@ -28,6 +28,16 @@ const replacer = (data: any) => (m: string, key: string) => {
};
const getStateIcon = (actionState: "undo" | "redo" | string, config: any) => {
if (!get(config, "customIcons.enabled", false)) {
switch (actionState) {
case "undo":
return <UndoIcon />;
case "redo":
return <RedoIcon />;
default:
return <RunIcon />;
}
}
switch (actionState) {
case "undo":
return get(config, "customIcons.undo") || <UndoIcon />;