nextcloud/apps/settings/js/vue-8.js

2 lines
29 KiB
JavaScript
Raw Normal View History

(window.webpackJsonpSettings=window.webpackJsonpSettings||[]).push([[8],{657:function(t,e,a){var n=a(687);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,a(150).default)("43f49a2e",n,!0,{})},659:function(t,e,a){var n=a(695);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,a(150).default)("17b99d03",n,!0,{})},686:function(t,e,a){"use strict";var n=a(657);a.n(n).a},687:function(t,e,a){(e=a(149)(!1)).push([t.i,"\n.force[data-v-86525a0a] {\n\tbackground: var(--color-main-background);\n\tborder-color: var(--color-error);\n\tcolor: var(--color-error);\n}\n.force[data-v-86525a0a]:hover,\n.force[data-v-86525a0a]:active {\n\tbackground: var(--color-error);\n\tborder-color: var(--color-error) !important;\n\tcolor: var(--color-main-background);\n}\n",""]),t.exports=e},694:function(t,e,a){"use strict";var n=a(659);a.n(n).a},695:function(t,e,a){(e=a(149)(!1)).push([t.i,"\n.force[data-v-49d0ed17] {\n\tbackground: var(--color-main-background);\n\tborder-color: var(--color-error);\n\tcolor: var(--color-error);\n}\n.force[data-v-49d0ed17]:hover,\n.force[data-v-49d0ed17]:active {\n\tbackground: var(--color-error);\n\tborder-color: var(--color-error) !important;\n\tcolor: var(--color-main-background);\n}\n",""]),t.exports=e},696:function(e,a,n){"use strict";n.r(a);var i=n(660),s=n.n(i),r=n(661),o=n.n(r),p=n(662),l=n.n(p),c=n(663),u=n.n(c),d=n(684),g=n.n(d),v=n(685),h=n.n(v),f=n(664),m=n.n(f),_=n(13),b=n(665),y=n.n(b),A={name:"AppScore",props:["score"],computed:{scoreImage:function(){var t="rating/s"+Math.round(10*this.score)+".svg";return OC.imagePath("core",t)}}},C=n(37),w=Object(C.a)(A,(function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"app-score-image",attrs:{"src":this.scoreImage}})}),[],!1,null,null,null).exports,k={computed:{appGroups:function(){return this.app.groups.map((function(t){return{id:t,name:t}}))},loading:function(){var t=this;return function(e){return t.$store.getters.loading(e)}},installing:function(){return this.$store.getters.loading("install")},enableButtonText:function(){return this.app.needsDownload?t("settings","Download and enable"):t("settings","Enable")},forceEnableButtonText:function(){return this.app.needsDownload,t("settings","Enable untested app")},enableButtonTooltip:function(){return!!this.app.needsDownload&&t("settings","The app will be downloaded from the app store")},forceEnableButtonTooltip:function(){var e=t("settings","This app is not marked as compatible with your Nextcloud version. If you continue you will still be able to install the app. Note that the app might not work as expected.");return this.app.needsDownload?e+" "+t("settings","The app will be downloaded from the app store"):e}},mounted:function(){this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},methods:{asyncFindGroup:function(t){return this.$store.dispatch("getGroups",{search:t,limit:5,offset:0})},isLimitedToGroups:function(t){return!(!this.app.groups.length&&!this.groupCheckedAppsData)},setGroupLimit:function(){this.groupCheckedAppsData||this.$store.dispatch("enableApp",{appId:this.app.id,groups:[]})},canLimitToGroups:function(t){return!(t.types&&t.types.includes("filesystem")||t.types.includes("prelogin")||t.types.includes("authentication")||t.types.includes("logging")||t.types.includes("prevent_group_restriction"))},addGroupLimitation:function(t){var e=this.app.groups.concat([]).concat([t.id]);this.$store.dispatch("enableApp",{appId:this.app.id,groups:e})},removeGroupLimitation:function(t){var e=this.app.groups.concat([]),a=e.indexOf(t.id);a>-1&&e.splice(a,1),this.$store.dispatch("enableApp",{appId:this.app.id,groups:e})},forceEnable:function(t){this.$store.dispatch("forceEnableApp",{appId:t,groups:[]}).then((function(t){OC.Settings.Apps.rebuildNavigation()})).catch((function(t){OC.Notification.show(t)}))},enable:function(t){this.$store.dispatch("enableApp",{appId:t,groups:[]}).then((function(t){OC.Settings.Apps.rebuildNavigation()})).catch((function(t){OC.Notification.show(t)}))},disable:function(t){this.$store.dispatch("disableApp",{appId:t}).then((
//# sourceMappingURL=vue-8.js.map?v=2a53596d5d5da4f2731f