feat: Adds the ability to edit and delete custom attributes (#2982)

* feat: Adds the ability to edit and delete custom attributes

* Review fixes

* Minor fixes

* Adds specs

* Minor fixes

* Update settings.routes.js

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Sivin Varghese
2021-09-13 15:56:18 +05:30
committed by GitHub
parent 571fefd7cd
commit 26a3150fd8
8 changed files with 325 additions and 42 deletions

View File

@@ -35,7 +35,29 @@
},
"API": {
"SUCCESS_MESSAGE": "Attribute added successfully",
"ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later"
"ERROR_MESSAGE": "Could not able to create an attribute, Please try again later"
}
},
"DELETE": {
"BUTTON_TEXT": "Delete",
"API": {
"SUCCESS_MESSAGE": "Attribute deleted successfully.",
"ERROR_MESSAGE": "Couldn't delete the attribute. Try again."
},
"CONFIRM": {
"TITLE": "Are you sure want to delete - %{attributeName}",
"PLACE_HOLDER": "Please type {attributeName} to confirm",
"MESSAGE": "Deleting will remove the attribute",
"YES": "Delete ",
"NO": "Cancel"
}
},
"EDIT": {
"TITLE": "Edit attribute",
"UPDATE_BUTTON_TEXT": "Update",
"API": {
"SUCCESS_MESSAGE": "Attribute updated successfully",
"ERROR_MESSAGE": "There was an error updating attribute, please try again"
}
},
"TABS": {