refactor: Rename permission menu-item to menu-link
parent
35081eb85d
commit
6f8268f3ac
|
@ -32,7 +32,7 @@ export default {
|
||||||
|
|
||||||
return component;
|
return component;
|
||||||
},
|
},
|
||||||
permissions: pluginPermissions['menu-item'],
|
permissions: pluginPermissions['menu-link'],
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
bootstrap(app) {},
|
bootstrap(app) {},
|
||||||
|
|
|
@ -3,7 +3,7 @@ const pluginPermissions = {
|
||||||
// If the plugin link should be displayed in the menu
|
// If the plugin link should be displayed in the menu
|
||||||
// And also if the plugin is accessible. This use case is found when a user types the url of the
|
// And also if the plugin is accessible. This use case is found when a user types the url of the
|
||||||
// plugin directly in the browser
|
// plugin directly in the browser
|
||||||
'menu-item': [{ action: 'plugin::config-sync.menu-item', subject: null }],
|
'menu-link': [{ action: 'plugin::config-sync.menu-link', subject: null }],
|
||||||
settings: [{ action: 'plugin::config-sync.settings.read', subject: null }],
|
settings: [{ action: 'plugin::config-sync.settings.read', subject: null }],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@ module.exports = async () => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
section: 'plugins',
|
section: 'plugins',
|
||||||
displayName: 'Link to plugin settings from the main menu',
|
displayName: 'Menu link to plugin settings',
|
||||||
uid: 'menu-item',
|
uid: 'menu-link',
|
||||||
pluginName: 'config-sync',
|
pluginName: 'config-sync',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue