π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
feat: add discard draft fn
mertmitf0df14871d57
diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.jsonindex f9434b997f..c32203a581 100644--- a/packages/nc-gui/lang/en.json+++ b/packages/nc-gui/lang/en.json@@ -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}",diff --git a/packages/nocodb/src/controllers/internal/operationScopes.ts b/packages/nocodb/src/controllers/internal/operationScopes.tsindex b6e7603125..17fe62803c 100644--- a/packages/nocodb/src/controllers/internal/operationScopes.ts+++ b/packages/nocodb/src/controllers/internal/operationScopes.ts@@ -135,6 +135,7 @@ export const OPERATION_SCOPES = {managedAppDelete: 'base',managedAppPublish: 'base',managedAppCreateDraft: 'base',+ managedAppDiscardDraft: 'base',managedAppUnpublish: 'base',managedAppInstall: 'workspace',managedAppGetUpdates: 'base',