blob: 18c83e99ac9d5bf71080686028281a6913b6cc01 [file] [log] [blame]
Simon Hunt8d558082015-10-29 21:32:50 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Simon Hunt8d558082015-10-29 21:32:50 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 ONOS GUI -- Topology Dialog Module.
Simon Hunt8d28a552016-01-11 14:01:02 -080019 Creates a dialog box for the topology view.
Simon Hunt8d558082015-10-29 21:32:50 -070020 */
21
22(function () {
23 'use strict';
24
Simon Hunt8d558082015-10-29 21:32:50 -070025 // constants
Simon Hunt8d28a552016-01-11 14:01:02 -080026 var idDialog = 'topo-p-dialog',
27 opts = {
Steven Burrows46c5f102017-07-14 16:52:46 +010028 cssCls: 'topo-p',
Simon Hunt8d558082015-10-29 21:32:50 -070029 };
30
Simon Hunt8d558082015-10-29 21:32:50 -070031 // ==========================
32
33 angular.module('ovTopo')
34 .factory('TopoDialogService',
Simon Hunt8d28a552016-01-11 14:01:02 -080035 ['DialogService',
Simon Hunt8d558082015-10-29 21:32:50 -070036
Simon Hunt8d28a552016-01-11 14:01:02 -080037 function (ds) {
Simon Hunt8d558082015-10-29 21:32:50 -070038 return {
Simon Hunt8d28a552016-01-11 14:01:02 -080039 openDialog: function () { return ds.openDialog(idDialog, opts); },
40 closeDialog: ds.closeDialog,
Steven Burrows46c5f102017-07-14 16:52:46 +010041 createDiv: ds.createDiv,
Simon Hunt8d558082015-10-29 21:32:50 -070042 };
43 }]);
44}());