mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
feat(editor): Update user management setup message when sharing is disabled (#4928)
* feat: Update user management setup message when sharing is disabled * feat: Update messages when sharing license unavailable * fix: fix linting issue
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<n8n-action-box
|
||||
:heading="$locale.baseText('settings.users.setupToInviteUsers')"
|
||||
:buttonText="$locale.baseText('settings.users.setupMyAccount')"
|
||||
:description="$locale.baseText('settings.users.setupToInviteUsersInfo')"
|
||||
:description="`${isSharingEnabled ? '' : $locale.baseText('settings.users.setupToInviteUsersInfo')}${$locale.baseText('settings.users.setupSMTPInfo')}`"
|
||||
@click="redirectToSetup"
|
||||
/>
|
||||
</div>
|
||||
@@ -51,7 +51,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { INVITE_USER_MODAL_KEY, VIEWS } from '@/constants';
|
||||
import {
|
||||
EnterpriseEditionFeature,
|
||||
INVITE_USER_MODAL_KEY,
|
||||
VIEWS,
|
||||
} from '@/constants';
|
||||
|
||||
import PageAlert from '../components/PageAlert.vue';
|
||||
import { IUser } from '@/Interface';
|
||||
@@ -74,6 +78,9 @@ export default mixins(showMessage).extend({
|
||||
},
|
||||
computed: {
|
||||
...mapStores(useSettingsStore, useUIStore, useUsersStore),
|
||||
isSharingEnabled() {
|
||||
return this.settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.Sharing);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
redirectToSetup() {
|
||||
|
||||
Reference in New Issue
Block a user