Don't allow including a folder

parent 2df13d92
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<el-table-column prop="actions" label="" width="150"> <el-table-column prop="actions" label="" width="150">
<template scope="scope"> <template scope="scope">
<a class="btn btn-primary btn-flat" @click.prevent="insertMedia(scope)" <a class="btn btn-primary btn-flat" @click.prevent="insertMedia(scope)"
v-if="singleModal"> v-if="singleModal && ! scope.row.is_folder">
{{ trans('media.insert') }} {{ trans('media.insert') }}
</a> </a>
<div v-if="! singleModal"> <div v-if="! singleModal">
......
...@@ -92357,7 +92357,7 @@ var _ActiveEditor = __webpack_require__(140); ...@@ -92357,7 +92357,7 @@ var _ActiveEditor = __webpack_require__(140);
var _ActiveEditor2 = _interopRequireDefault(_ActiveEditor); var _ActiveEditor2 = _interopRequireDefault(_ActiveEditor);
var _SingleFileSelector = __webpack_require__(207); var _SingleFileSelector = __webpack_require__(141);
var _SingleFileSelector2 = _interopRequireDefault(_SingleFileSelector); var _SingleFileSelector2 = _interopRequireDefault(_SingleFileSelector);
...@@ -92679,7 +92679,27 @@ exports.default = { ...@@ -92679,7 +92679,27 @@ exports.default = {
}; };
/***/ }), /***/ }),
/* 141 */, /* 141 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = {
methods: {
selectSingleFile: function selectSingleFile(event, model) {
this[model].medias_single = _.merge(this[model].medias_single, _defineProperty({}, event.zone, event.id));
}
}
};
/***/ }),
/* 142 */ /* 142 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
...@@ -95306,7 +95326,7 @@ var render = function() { ...@@ -95306,7 +95326,7 @@ var render = function() {
key: "default", key: "default",
fn: function(scope) { fn: function(scope) {
return [ return [
_vm.singleModal _vm.singleModal && !scope.row.is_folder
? _c( ? _c(
"a", "a",
{ {
...@@ -97371,37 +97391,5 @@ if (false) { ...@@ -97371,37 +97391,5 @@ if (false) {
// removed by extract-text-webpack-plugin // removed by extract-text-webpack-plugin
/***/ }),
/* 196 */,
/* 197 */,
/* 198 */,
/* 199 */,
/* 200 */,
/* 201 */,
/* 202 */,
/* 203 */,
/* 204 */,
/* 205 */,
/* 206 */,
/* 207 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = {
methods: {
selectSingleFile: function selectSingleFile(event, model) {
this[model].medias_single = _.merge(this[model].medias_single, _defineProperty({}, event.zone, event.id));
}
}
};
/***/ }) /***/ })
/******/ ]); /******/ ]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment