diff --git a/zfs/zfs.js b/zfs/zfs.js index beff6df..68722a6 100644 --- a/zfs/zfs.js +++ b/zfs/zfs.js @@ -78,6 +78,7 @@ let zfsmanager = { name: "" }, version: "0.3.4.514", + vendorversion: "1.2.0", zfs: { storagepool: { boot: "", @@ -826,10 +827,10 @@ function FnConfigurationLegacyRelocate(legacy = { path }) { function FnUpdatesCheck(display = { alert: true }) { FnConsole.log[2]("Cockpit ZFS Manager, Updates, Check: In Progress"); - $.ajax({ url: "https://api.github.com/repos/optimans/cockpit-zfs-manager/releases", dataType: "json", cache: false }) + $.ajax({ url: "https://api.github.com/repos/45drives/cockpit-zfs-manager/releases", dataType: "json", cache: false }) .done(function (data) { if (data[0].name) { - if (FnUpdatesVersionCompare({ installed: zfsmanager.version, latest: data[0].name }) < 0) { + if (FnUpdatesVersionCompare({ installed: zfsmanager.vendorversion, latest: data[0].name }) < 0) { setTimeout(function () { $("#alert-about-update").removeClass("hidden"); $("#span-about-update-version").html(`` + data[0].name + ` ` + (data[0].prerelease === true ? `(Pre-release)` : `(Release)`) + ``); @@ -1788,7 +1789,7 @@ function FnStoragePoolsImportableGet(pools = { destroyed: false }) { pools.importable.disk.filter(v => { if (v.match(pool.name) && !pool.id.disk) { pool.id.disk = true; pool.idtext.push("Disk / WWN"); } }); pools.importable.path.filter(v => { if (v.match(pool.name) && !pool.id.path) { pool.id.path = true; pool.idtext.push("Hardware Path"); } }); - pools.importable.vdev.filter(v => { if (v.match(pool.name) && !pool.id.vdev) { pool.id.vdev = true; pool.idtext.push("Virtual Device Mapping"); } }); + pools.importable.vdev.filter(v => { if (v.match(pool.name) && !pool.id.vdev) { pool.id.vdev = true; pool.idtext.push("Device Alias"); } }); if (/ONLINE/g.test(pool.health) == false) { @@ -4092,7 +4093,7 @@ function FnStoragePoolImport(pool = { name, altroot, destroyed: false, force: fa } else { disks.fallback = true; } - disks.identifiertext = "Virtual Device Mapping"; + disks.identifiertext = "Device Alias"; break; } @@ -13347,8 +13348,8 @@ function FnModalAbout() { @@ -13841,7 +13842,7 @@ function FnModalStoragePoolsCreateContent(modal = { id }) {
- ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + ` + ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + `
@@ -14289,14 +14290,14 @@ function FnModalStoragePoolsImportContent(modal = { id }) {
@@ -19502,7 +19503,7 @@ function FnModalStatusDiskAttachContent(pool = { name, id, status: { config: { i
- ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + ` + ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + `
@@ -19978,14 +19979,14 @@ function FnModalStatusDiskReplaceContent(pool = { name, id, status: { config: { @@ -19993,7 +19994,7 @@ function FnModalStatusDiskReplaceContent(pool = { name, id, status: { config: {
- ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + ` + ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + `
@@ -20626,14 +20627,14 @@ function FnModalStatusVirtualDeviceAddContent(pool = { name, id, feature: { allo @@ -20641,7 +20642,7 @@ function FnModalStatusVirtualDeviceAddContent(pool = { name, id, feature: { allo
- ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + ` + ` + (zfsmanager.zfs.warnings.nvmevdev ? `` : ``) + `