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:
Alex Grozav
2022-12-14 15:43:13 +02:00
committed by GitHub
parent a1259898c0
commit fbcbef20e7
2 changed files with 15 additions and 9 deletions

View File

@@ -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() {