auth: translation menu in login form

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-05-23 03:02:44 +05:30
parent b8a22f27ae
commit 8c2a1f1854
5 changed files with 11 additions and 8 deletions

View File

@ -16,7 +16,6 @@
// under the License.
<template>
<a-dropdown>
<span class="action ant-dropdown-link translation-menu">
<font-awesome-icon :icon="['fas', 'language']" size="lg" />
@ -44,7 +43,6 @@
<a-menu-item key="ru_RU" :value="ruRU">Русский</a-menu-item>
</a-menu>
</a-dropdown>
</template>
<script>

View File

@ -32,7 +32,7 @@ export default {
api: 'archiveEvents',
icon: 'book',
label: 'Archive Event',
listView: true,
listView: false,
dataView: true,
args: ['ids'],
mapping: {
@ -45,7 +45,7 @@ export default {
api: 'deleteEvents',
icon: 'delete',
label: 'Delete Event',
listView: true,
listView: false,
dataView: true,
args: ['ids'],
mapping: {

View File

@ -612,6 +612,7 @@
"label.kubernetes.version.update": "Update Kubernetes Version",
"label.link.domain.to.ldap": "Link Domain to LDAP",
"label.local.storage":"Local Storage",
"label.login":"Login",
"label.make.project.owner": "Make account project owner",
"label.management.ips":"Management IP Addresses",
"label.management.server":"Management Server",

View File

@ -505,6 +505,7 @@
"label.gslb.lb.remove": "\u3053\u306e GSLB \u304b\u3089\u8ca0\u8377\u5206\u6563\u3092\u524a\u9664",
"label.instanciate.template.associate.profile.blade": "\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u304a\u3088\u3073\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3068\u30d6\u30ec\u30fc\u30c9\u306e\u95a2\u9023\u4ed8\u3051",
"label.link.domain.to.ldap": "\u30c9\u30e1\u30a4\u30f3\u3092 LDAP \u306b\u30ea\u30f3\u30af\u3059\u308b",
"label.login": "ログオン",
"label.make.project.owner": "\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u6240\u6709\u8005\u5316",
"label.metrics": "\u30e1\u30c8\u30ea\u30c3\u30af\u30b9",
"label.migrate.instance.to.host": "\u5225\u306e\u30db\u30b9\u30c8\u3078\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u79fb\u884c",
@ -891,4 +892,4 @@
"zoneId": "\u30be\u30fc\u30f3",
"zoneid": "\u30be\u30fc\u30f3",
"zonename": "\u30be\u30fc\u30f3"
}
}

View File

@ -33,7 +33,7 @@
<a-tab-pane key="cs">
<span slot="tab">
<a-icon type="safety" />
Portal Login
Portal {{ $t('label.login') }}
</span>
<a-form-item>
<a-input
@ -82,7 +82,7 @@
<a-tab-pane key="saml" :disabled="idps.length === 0">
<span slot="tab">
<a-icon type="audit" />
Single-Sign-On
Single Sign-On
</span>
<a-form-item>
<a-select v-decorator="['idp', { initialValue: selectedIdp } ]">
@ -102,8 +102,9 @@
class="login-button"
:loading="state.loginBtn"
:disabled="state.loginBtn"
>Log In</a-button>
>{{ $t('label.login') }}</a-button>
</a-form-item>
<translation-menu/>
</a-form>
</template>
@ -111,9 +112,11 @@
import { api } from '@/api'
import { mapActions } from 'vuex'
import config from '@/config/settings'
import TranslationMenu from '@/components/header/TranslationMenu'
export default {
components: {
TranslationMenu
},
data () {
return {