File: /home/nepi/public_html/public/admin/js/settings_global.e973d32e.js.map
{"version":3,"sources":["webpack:///./src/routes/settings/global.vue?9bea","webpack:///./src/routes/settings/global.vue?7287","webpack:///src/routes/settings/global.vue","webpack:///./src/routes/settings/global.vue?ad0f","webpack:///./src/routes/settings/global.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","links","currentProjectKey","slot","editing","saving","$t","on","$event","save","fields","values","stageValue","_v","staticRenderFns","component"],"mappings":"mHAAA,yBAAwjB,EAAG,G,yCCA3jB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,WAAW,CAACG,MAAM,CAAC,WAAaP,EAAIQ,MAAM,YAAa,IAAMR,EAAIS,kBAAoB,YAAa,SAAW,KAAK,CAACL,EAAG,WAAW,CAACM,KAAK,WAAW,CAACN,EAAG,kBAAkB,CAACG,MAAM,CAAC,UAAYP,EAAIW,QAAQ,QAAUX,EAAIY,OAAO,MAAQZ,EAAIa,GAAG,QAAQ,KAAO,QAAQ,mBAAmB,kCAAkC,aAAa,6BAA6BC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIgB,KAAK,cAAc,IAAI,GAAGZ,EAAG,SAAS,CAACG,MAAM,CAAC,OAASP,EAAIiB,OAAO,OAASjB,EAAIkB,OAAO,WAAa,qBAAqBJ,GAAG,CAAC,cAAcd,EAAImB,cAAcf,EAAG,iBAAiB,CAACG,MAAM,CAAC,KAAO,KAAK,CAACH,EAAG,OAAO,CAACE,YAAY,aAAa,CAACN,EAAIoB,GAAG,oBAAoB,IACxxBC,EAAkB,G,0sBC8BtB,OACA,sBACA,SAFA,WAGA,OACA,gFAGA,KAPA,WAQA,OACA,UACA,WAGA,cACA,gBACA,+CACA,kEACA,4DAJA,CAMA,OANA,WAOA,YACA,cADA,GAEA,aAGA,MAZA,WAaA,OACA,CACA,yBACA,qDAEA,CACA,gCACA,8DAIA,QAxBA,WAyBA,2CAGA,SACA,WADA,YACA,wBACA,2BACA,2BAGA,2BAEA,KARA,WAQA,WACA,eAEA,YACA,mCACA,iBACA,YACA,WAIA,2DAEA,4DACA,WACA,6BACA,cACA,sBAGA,mBACA,YACA,wBACA,oDACA,gBCxG+V,I,wBCQ3VC,EAAY,eACd,EACAvB,EACAsB,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"js/settings_global.e973d32e.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./global.vue?vue&type=style&index=0&id=6ee31e04&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./global.vue?vue&type=style&index=0&id=6ee31e04&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"settings-global\"},[_c('v-header',{attrs:{\"breadcrumb\":_vm.links,\"icon-link\":(\"/\" + _vm.currentProjectKey + \"/settings\"),\"settings\":\"\"}},[_c('template',{slot:\"buttons\"},[_c('v-header-button',{attrs:{\"disabled\":!_vm.editing,\"loading\":_vm.saving,\"label\":_vm.$t('save'),\"icon\":\"check\",\"background-color\":\"button-primary-background-color\",\"icon-color\":\"button-primary-text-color\"},on:{\"click\":function($event){return _vm.save('leave')}}})],1)],2),_c('v-form',{attrs:{\"fields\":_vm.fields,\"values\":_vm.values,\"collection\":\"directus_settings\"},on:{\"stage-value\":_vm.stageValue}}),_c('v-info-sidebar',{attrs:{\"wide\":\"\"}},[_c('span',{staticClass:\"type-note\"},[_vm._v(\"No settings\")])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\t<div class=\"settings-global\">\n\t\t<v-header :breadcrumb=\"links\" :icon-link=\"`/${currentProjectKey}/settings`\" settings>\n\t\t\t<template slot=\"buttons\">\n\t\t\t\t<v-header-button\n\t\t\t\t\t:disabled=\"!editing\"\n\t\t\t\t\t:loading=\"saving\"\n\t\t\t\t\t:label=\"$t('save')\"\n\t\t\t\t\ticon=\"check\"\n\t\t\t\t\tbackground-color=\"button-primary-background-color\"\n\t\t\t\t\ticon-color=\"button-primary-text-color\"\n\t\t\t\t\t@click=\"save('leave')\"\n\t\t\t\t/>\n\t\t\t</template>\n\t\t</v-header>\n\n\t\t<v-form\n\t\t\t:fields=\"fields\"\n\t\t\t:values=\"values\"\n\t\t\tcollection=\"directus_settings\"\n\t\t\t@stage-value=\"stageValue\"\n\t\t/>\n\t\t<v-info-sidebar wide>\n\t\t\t<span class=\"type-note\">No settings</span>\n\t\t</v-info-sidebar>\n\t</div>\n</template>\n\n<script>\nimport { mapState } from 'vuex';\n\nexport default {\n\tname: 'SettingsGlobal',\n\tmetaInfo() {\n\t\treturn {\n\t\t\ttitle: `${this.$t('settings')} | ${this.$t('settings_global')}`\n\t\t};\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tsaving: false,\n\t\t\tedits: {}\n\t\t};\n\t},\n\tcomputed: {\n\t\t...mapState({\n\t\t\tsettings: state => state.settings.values,\n\t\t\tfields: state => state.collections.directus_settings.fields,\n\t\t\tcurrentProjectKey: state => state.currentProjectKey\n\t\t}),\n\t\tvalues() {\n\t\t\treturn {\n\t\t\t\t...this.settings,\n\t\t\t\t...this.edits\n\t\t\t};\n\t\t},\n\t\tlinks() {\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tname: this.$t('settings'),\n\t\t\t\t\tpath: `/${this.currentProjectKey}/settings`\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: this.$t('settings_global'),\n\t\t\t\t\tpath: `/${this.currentProjectKey}/settings/global`\n\t\t\t\t}\n\t\t\t];\n\t\t},\n\t\tediting() {\n\t\t\treturn Object.keys(this.edits).length > 0;\n\t\t}\n\t},\n\tmethods: {\n\t\tstageValue({ field, value }) {\n\t\t\tif (this.settings[field] == value) {\n\t\t\t\treturn this.$delete(this.edits, field);\n\t\t\t}\n\n\t\t\treturn this.$set(this.edits, field, value);\n\t\t},\n\t\tsave() {\n\t\t\tthis.saving = true;\n\n\t\t\tthis.$store\n\t\t\t\t.dispatch('setSettings', this.edits)\n\t\t\t\t.then(() => {\n\t\t\t\t\tthis.saving = false;\n\t\t\t\t\tthis.edits = {};\n\n\t\t\t\t\t// Update the current project's info in the store when saving settings, this makes sure\n\t\t\t\t\t// the logo / name in the top left etc will update\n\t\t\t\t\tthis.$store.dispatch('updateProjectInfo', this.currentProjectKey);\n\n\t\t\t\t\tthis.$router.push(`/${this.currentProjectKey}/settings`);\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttitle: this.$t('settings_saved'),\n\t\t\t\t\t\tcolor: 'green',\n\t\t\t\t\t\ticonMain: 'check'\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(error => {\n\t\t\t\t\tthis.saving = false;\n\t\t\t\t\tthis.$events.emit('error', {\n\t\t\t\t\t\tnotify: error.message || this.$t('something_went_wrong_body'),\n\t\t\t\t\t\terror\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.settings-global {\n\tpadding: var(--page-padding-top) var(--page-padding) var(--page-padding-bottom);\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./global.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./global.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./global.vue?vue&type=template&id=6ee31e04&scoped=true&\"\nimport script from \"./global.vue?vue&type=script&lang=js&\"\nexport * from \"./global.vue?vue&type=script&lang=js&\"\nimport style0 from \"./global.vue?vue&type=style&index=0&id=6ee31e04&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6ee31e04\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}