Skip to content

Instantly share code, notes, and snippets.

@delfer
Created December 14, 2017 06:37
Show Gist options
  • Select an option

  • Save delfer/b5eb35384613cacb29344685d6f48d14 to your computer and use it in GitHub Desktop.

Select an option

Save delfer/b5eb35384613cacb29344685d6f48d14 to your computer and use it in GitHub Desktop.
--- /usr/share/pve-manager/js/pvemanagerlib.js 2017-11-30 13:35:28.000000000 +0300
+++ pvemanagerlib.js 2017-12-14 09:27:22.761055436 +0300
@@ -847,22 +847,7 @@
success: function(response, opts) {
var data = response.result.data;
- if (data.status !== 'Active') {
- Ext.Msg.show({
- title: gettext('No valid subscription'),
- icon: Ext.Msg.WARNING,
- msg: PVE.Utils.noSubKeyHtml,
- buttons: Ext.Msg.OK,
- callback: function(btn) {
- if (btn !== 'ok') {
- return;
- }
- orig_cmd();
- }
- });
- } else {
orig_cmd();
- }
}
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment