fixed toaster issues for uploading file in Admin UI
parent
f8e5905468
commit
e016b1df9b
|
@ -37,7 +37,7 @@ app.controller('CostFileController', function (
|
||||||
toaster.pop({
|
toaster.pop({
|
||||||
type: "success",
|
type: "success",
|
||||||
title: $translate.instant("TOASTER.SUCCESS_TITLE"),
|
title: $translate.instant("TOASTER.SUCCESS_TITLE"),
|
||||||
body: $translate.instant("TOASTER.SUCCESS_ADD_BODY".format(file.name)),
|
body: $translate.instant("TOASTER.SUCCESS_ADD_BODY", {template: file.name}),
|
||||||
showCloseButton: true,
|
showCloseButton: true,
|
||||||
});
|
});
|
||||||
$scope.getAllCostFiles();
|
$scope.getAllCostFiles();
|
||||||
|
@ -46,7 +46,7 @@ app.controller('CostFileController', function (
|
||||||
toaster.pop({
|
toaster.pop({
|
||||||
type: "error",
|
type: "error",
|
||||||
title: $translate.instant("TOASTER.FAILURE_TITLE"),
|
title: $translate.instant("TOASTER.FAILURE_TITLE"),
|
||||||
body: $translate.instant("TOASTER.ERROR_ADD_BODY".format(file.name)),
|
body: $translate.instant("TOASTER.ERROR_ADD_BODY", {template: file.name}),
|
||||||
showCloseButton: true,
|
showCloseButton: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ app.controller('KnowledgeFileController', function (
|
||||||
toaster.pop({
|
toaster.pop({
|
||||||
type: "success",
|
type: "success",
|
||||||
title: $translate.instant("TOASTER.SUCCESS_TITLE"),
|
title: $translate.instant("TOASTER.SUCCESS_TITLE"),
|
||||||
body: $translate.instant("TOASTER.SUCCESS_ADD_BODY".format(file.name)),
|
body: $translate.instant("TOASTER.SUCCESS_ADD_BODY", {template: file.name}),
|
||||||
showCloseButton: true,
|
showCloseButton: true,
|
||||||
});
|
});
|
||||||
$scope.getAllKnowledgeFiles();
|
$scope.getAllKnowledgeFiles();
|
||||||
|
@ -46,7 +46,7 @@ app.controller('KnowledgeFileController', function (
|
||||||
toaster.pop({
|
toaster.pop({
|
||||||
type: "error",
|
type: "error",
|
||||||
title: $translate.instant("TOASTER.FAILURE_TITLE"),
|
title: $translate.instant("TOASTER.FAILURE_TITLE"),
|
||||||
body: $translate.instant("TOASTER.ERROR_ADD_BODY".format(file.name)),
|
body: $translate.instant("TOASTER.ERROR_ADD_BODY", {template: file.name}),
|
||||||
showCloseButton: true,
|
showCloseButton: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -342,7 +342,6 @@ function dropZone() {
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
url: 'http://localhost:8080/upload',
|
|
||||||
maxFilesize: 100,
|
maxFilesize: 100,
|
||||||
paramName: "uploadfile",
|
paramName: "uploadfile",
|
||||||
maxThumbnailFilesize: 10,
|
maxThumbnailFilesize: 10,
|
||||||
|
|
Loading…
Reference in New Issue