当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript notify.info方法代码示例

本文整理汇总了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);
                            }
                        }
                    }
                };
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:35,代码来源:teacherDashboardPublishToLibrary.ts

示例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();
 },
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:7,代码来源:teacherDashboardSimpleCorrectionCopyList.ts

示例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()
			})
开发者ID:entcore,项目名称:entcore,代码行数:21,代码来源:forgot.ts

示例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();
	};
开发者ID:entcore,项目名称:entcore,代码行数:39,代码来源:directory.ts


注:本文中的entcore.notify.info方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。