feat: add discard draft fn

This commit is contained in:
mertmit
2026-01-28 12:07:50 +00:00
parent 0a2fe65dc0
commit f0df14871d
2 changed files with 9 additions and 0 deletions

View File

@@ -813,6 +813,7 @@
"isNotNull": "is not null"
},
"title": {
"discardDraft": "Discard Draft?",
"setPassword": "Set Password",
"externalIntegrations": "External Integrations",
"mcpServer": "MCP Server",
@@ -1189,6 +1190,11 @@
"live": "Live",
"upToDate": "Up to date",
"updateAvailable": "Update available",
"discardDraft": "Discard Draft",
"discarding": "Discarding",
"returnTo": "Return to",
"currentDraft": "Current Draft",
"rollbackTo": "Rollback to",
"managedAppTitle": "Title",
"managedAppDescription": "Description",
"managedAppCategory": "Category",
@@ -2245,6 +2251,8 @@
"searchTemplates": "Search templates"
},
"msg": {
"discardDraftConfirmation": "This will discard all changes made in the current draft and rollback to the latest published version. This action cannot be undone.",
"draftDiscardedSuccessfully": "Draft discarded successfully",
"ssoTokenTooltip": "Generated after SSO login and can be used for accessing APIs under SSO-enabled workspace",
"privateBaseAccessRestricted": "This is a private base. You do not have permission to view or invite members.",
"userAlreadyExists": "{email} already has access to this {scope}",

View File

@@ -135,6 +135,7 @@ export const OPERATION_SCOPES = {
managedAppDelete: 'base',
managedAppPublish: 'base',
managedAppCreateDraft: 'base',
managedAppDiscardDraft: 'base',
managedAppUnpublish: 'base',
managedAppInstall: 'workspace',
managedAppGetUpdates: 'base',