akkoma/priv/static/adminfe/static/js/chunk-b4ba.f717f3b2.js

2 lines
23 KiB
JavaScript
Raw Normal View History

2020-02-11 16:24:38 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b4ba"],{"4bFr":function(s,t,e){"use strict";e.r(t);var a=e("ot3S"),n={name:"UsersShow",components:{ModerationDropdown:e("tPM3").a,Status:a.a},data:function(){return{showPrivate:!1,resetPasswordDialogOpen:!1}},computed:{loading:function(){return this.$store.state.users.loading},passwordResetLink:function(){return this.$store.state.users.passwordResetToken.link},passwordResetToken:function(){return this.$store.state.users.passwordResetToken.token},statuses:function(){return this.$store.state.userProfile.statuses},statusesLoading:function(){return this.$store.state.userProfile.statusesLoading},user:function(){return this.$store.state.userProfile.user},userProfileLoading:function(){return this.$store.state.userProfile.userProfileLoading}},mounted:function(){this.$store.dispatch("FetchUserProfile",{userId:this.$route.params.id,godmode:!1})},methods:{closeResetPasswordDialog:function(){this.resetPasswordDialogOpen=!1,this.$store.dispatch("RemovePasswordToken")},onTogglePrivate:function(){this.$store.dispatch("FetchUserProfile",{userId:this.$route.params.id,godmode:this.showPrivate})},openResetPasswordDialog:function(){this.resetPasswordDialogOpen=!0}}},r=(e("6ovB"),e("KHd+")),i=Object(r.a)(n,function(){var s=this,t=s.$createElement,e=s._self._c||t;return s.userProfileLoading?s._e():e("main",[e("header",{staticClass:"user-page-header"},[e("div",{staticClass:"avatar-name-container"},[e("el-avatar",{attrs:{src:s.user.avatar,size:"large"}}),s._v(" "),e("h1",[s._v(s._s(s.user.display_name))])],1),s._v(" "),e("moderation-dropdown",{attrs:{user:s.user,page:"userPage"},on:{"open-reset-token-dialog":s.openResetPasswordDialog}})],1),s._v(" "),e("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:s.loading,expression:"loading"}],attrs:{visible:s.resetPasswordDialogOpen,title:s.$t("users.passwordResetTokenCreated"),"custom-class":"password-reset-token-dialog"},on:{"update:visible":function(t){s.resetPasswordDialogOpen=t},close:s.closeResetPasswordDialog}},[e("div",[e("p",{staticClass:"password-reset-token"},[s._v("Password reset token was generated: "+s._s(s.passwordResetToken))]),s._v(" "),e("p",[s._v("You can also use this link to reset password:\n "),e("a",{staticClass:"reset-password-link",attrs:{href:s.passwordResetLink,target:"_blank"}},[s._v(s._s(s.passwordResetLink))])])])]),s._v(" "),e("el-row",[e("el-col",{attrs:{span:8}},[e("el-card",{staticClass:"user-profile-card"},[e("div",{staticClass:"el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition el-table--medium"},[e("table",{staticClass:"user-profile-table"},[e("tbody",[e("tr",{staticClass:"el-table__row"},[e("td",[s._v(s._s(s.$t("userProfile.nickname")))]),s._v(" "),e("td",[s._v("\n "+s._s(s.user.nickname)+"\n ")])]),s._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",{staticClass:"name-col"},[s._v("ID")]),s._v(" "),e("td",{staticClass:"value-col"},[s._v("\n "+s._s(s.user.id)+"\n ")])]),s._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[s._v(s._s(s.$t("userProfile.tags")))]),s._v(" "),e("td",[s._l(s.user.tags,function(t){return e("el-tag",{key:t,staticClass:"user-profile-tag"},[s._v(s._s(t))])}),s._v(" "),0===s.user.tags.length?e("span",[s._v("—")]):s._e()],2)]),s._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[s._v(s._s(s.$t("userProfile.roles")))]),s._v(" "),e("td",[s.user.roles.admin?e("el-tag",{staticClass:"user-profile-tag"},[s._v("\n "+s._s(s.$t("users.admin"))+"\n ")]):s._e(),s._v(" "),s.user.roles.moderator?e("el-tag",{staticClass:"user-profile-tag"},[s._v("\n "+s._s(s.$t("users.moderator"))+"\n ")]):s._e(),s._v(" "),s.user.roles.moderator||s.user.roles.admin?s._e():e("span",[s._v("—")])],1)]),s._v(" "),e("tr",{staticClass:"el-table__row"},[e("td",[s._v(s._s(s.$t("userProfile.localUppercase")))]),s._v(" "),e("td",[s.user.local?e("el-tag",{attrs:{type:"info"}},[s._v(s._s(s.$t("userProfile.local")))]):s._e(),s._v
2020-02-17 21:50:45 +00:00
//# sourceMappingURL=chunk-b4ba.f717f3b2.js.map