本文整理汇总了TypeScript中entcore.notify.info方法的典型用法代码示例。如果您正苦于以下问题:TypeScript notify.info方法的具体用法?TypeScript notify.info怎么用?TypeScript notify.info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类entcore.notify
的用法示例。
在下文中一共展示了notify.info方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
scope.addNewSubjectTag = function(newCustomTagLabel:string) {
newCustomTagLabel = StringISOHelper.toISO(newCustomTagLabel);
if (!angular.isUndefined(newCustomTagLabel)) {
var isExisting = false;
for (let i = 0; i < scope.subjectTagList.length; ++i) {
if (CompareStringHelper.compare(StringISOHelper.toISO(scope.subjectTagList[i].label), newCustomTagLabel)) {
notify.info('exercizer.service.check.addtag');
i = scope.subjectTagList.length;
isExisting = true;
}
}
if (!isExisting) {
var newSubjectTag = new SubjectTag(undefined, newCustomTagLabel);
isExisting = false;
for (let i = 0; i < scope.selectedSubjectTagList.length; ++i) {
if (CompareStringHelper.compare(StringISOHelper.toISO(scope.selectedSubjectTagList[i].label), newCustomTagLabel)) {
notify.info('exercizer.service.check.selectedtag');
i = scope.selectedSubjectTagList.length;
isExisting = true;
}
}
if (!isExisting) {
scope.selectedSubjectTagList.push(newSubjectTag);
}
}
}
};
示例2: function
function (fileId) {
scope.selectedCopy.corrected_metadata = {"filename":file.name};
scope.selectedCopy.corrected_file_id = fileId;
scope.selectedCopy.is_corrected = true;
notify.info('exercizer.service.save.individual.corrected');
scope.$apply();
},
示例3: setError
.done(function(data){
if(data.structures){
$scope.structures = data.structures;
if(firstName === null || structureId === null){
$scope.user.mode = 'idExtras'
}else{
$scope.user.mode = 'notFound';
setError('auth.notify.non.unique.result.mail');
}
}else {
notify.info("auth.notify." + service + ".sent")
if (data.mobile) {
$scope.user.channels = {
mobile: data.mobile
}
} else {
$scope.user.channels = {}
}
}
$scope.$apply()
})
示例4: function
$scope.searchDirectory = async function(){
$scope.indexFormChanged($scope.search.index);
// Favorite
if ($scope.search.index == 2) {
$scope.createFavorite();
return;
}
$scope.display.loading = true;
if (ui.breakpoints.checkMaxWidth("wideScreen")) {
$scope.display.loadingmobile = true;
}
template.open('main', 'mono-class');
template.open('list', 'dominos');
if ($scope.search.index === 0) {
await directory.directory.users.searchDirectory($scope.search.users, $scope.filters.users);
$scope.users = directory.directory.users;
$scope.allUsers = Object.assign([], $scope.users);
template.open('dominosUser', 'dominos-user');
}
else {
await directory.directory.groups.searchDirectory($scope.search.groups, $scope.filters.groups);
$scope.groups = directory.directory.groups;
template.open('dominosGroup', 'dominos-group');
}
$scope.display.searchmobile = false;
$scope.display.showCloseMobile = $scope.display.searchmobile;
$scope.display.loading = false;
$scope.display.loadingmobile = false;
if (($scope.search.index === 0 && $scope.users.all.length === 0) || ($scope.search.index === 1 && $scope.groups.all.length === 0)) {
if (ui.breakpoints.checkMaxWidth("wideScreen")) {
notify.info("noresult");
}
}
else
$scope.display.searchmobile = true;
$scope.$apply();
};