]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/Utils.js
ui: ceph install: add hints depending on selected repo and subscriptions
[pve-manager.git] / www / manager6 / Utils.js
index d5dd2999081ec6970bd2122da9d61caf43d3ce0b..cc7e8ce17ffe4c87acb83f64b44c0ccff425eadb 100644 (file)
@@ -37,6 +37,14 @@ Ext.define('PVE.Utils', {
       +'<a target="_blank" href="https://www.proxmox.com/products/proxmox-ve/subscription-service-plans">'
       +'www.proxmox.com</a> to get a list of available options.',
 
+    getClusterSubscriptionLevel: async function() {
+       let { result } = await Proxmox.Async.api2({ url: '/cluster/status' });
+       let levelMap = Object.fromEntries(
+         result.data.filter(v => v.type === 'node').map(v => [v.name, v.level]),
+       );
+       return levelMap;
+    },
+
     kvm_ostypes: {
        'Linux': [
            { desc: '6.x - 2.6 Kernel', val: 'l26' },