Warren Buckley
08/09/2024, 3:49 PMWarren Buckley
08/09/2024, 3:51 PMWarren Buckley
08/09/2024, 3:57 PMts
const workspaceActionManifests: Array<ManifestWorkspaceActions> = [
    {
        type: 'workspaceAction',
        overwrites: 'Umb.WorkspaceAction.Document.SaveAndPublish', // Alias of thing you want to overwrite
        alias: 'mything.saveandpublish',
        name: '[My Thing] Save and Publish Workspace Action',
        weight: 70,
        meta: {
            look: 'primary',
            color: 'positive',
            label: 'Awesome Save & Publish' // Update the text of the button
        },
        conditions: [
            {
                alias: 'Umb.Condition.WorkspaceAlias',
                match: 'Umb.Workspace.Document',
            },
            {
                alias: 'ShowOrHideConditionAlias'
            }
        ]
    },  
];A hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by