File: remove-price-tab-when-launching-instance.patch

package info (click to toggle)
cloudkitty-dashboard 21.0.0~rc1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,788 kB
  • sloc: javascript: 14,055; python: 1,990; makefile: 26
file content (31 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Remove price tab when launching instances
 The price tab is kind of buggy and hardly useful. This removes it.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2021-07-27

Index: cloudkitty-dashboard/cloudkittydashboard/static/cloudkitty/js/cloudkitty.module.js
===================================================================
--- cloudkitty-dashboard.orig/cloudkittydashboard/static/cloudkitty/js/cloudkitty.module.js
+++ cloudkitty-dashboard/cloudkittydashboard/static/cloudkitty/js/cloudkitty.module.js
@@ -12,13 +12,13 @@
 
    $provide.decorator("horizon.dashboard.project.workflow.launch-instance.workflow", ['$delegate', function ($delegate) {
       var workflow = $delegate;
-      var static_path = $windowProvider.$get().STATIC_URL;
-      workflow.append({
-        formName: 'CloudkittyForm',
-        templateUrl: static_path + 'cloudkitty/templates/cloudkitty-step.html',
-        helpUrl: static_path + 'cloudkitty/templates/cloudkitty-help.html',
-        title: 'Price'
-      });
+//      var static_path = $windowProvider.$get().STATIC_URL;
+//      workflow.append({
+//        formName: 'CloudkittyForm',
+//        templateUrl: static_path + 'cloudkitty/templates/cloudkitty-step.html',
+//        helpUrl: static_path + 'cloudkitty/templates/cloudkitty-help.html',
+//        title: 'Price'
+//      });
       return workflow;
    }]);