Merge pull request #889 from EBEN4REAL/custom-tag-colors

Custom tag colors
This commit is contained in:
vmatsiiako
2023-08-23 21:03:46 -07:00
committed by GitHub
18 changed files with 443 additions and 137 deletions
@@ -53,7 +53,8 @@ export const AddSecretTagModal = ({
await createWsTag.mutateAsync({
workspaceID: currentWorkspace?._id,
tagName: name,
tagSlug: name.replace(" ", "_")
tagSlug: name.replace(/\s+/g, " ").replace(" ", "_"),
tagColor: ""
});
handlePopUpClose("CreateSecretTag");
@@ -62,6 +63,7 @@ export const AddSecretTagModal = ({
text: "Successfully created a tag",
type: "success"
});
reset()
} catch (err) {
console.error(err);
createNotification({