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