1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-01 06:50:25 +03:00

IE11 don't support includes function (#2261)

This commit is contained in:
Abel Coronado 2018-07-05 16:51:37 +02:00 committed by Tino Vázquez
parent 0c53ae51ef
commit 34717012d6

View File

@ -683,7 +683,7 @@ define(function(require) {
var hashRes = ["Dashboard", "Settings", "NetworkTopology"];
var res = SunstoneCfg["tabs"][tabName]["resource"];
if (res) {
if (!hashRes.includes(res)){
if (hashRes.indexOf(res) < 0){
Sunstone.runAction(res + ".list");
} else {
Sunstone.runAction(res + ".refresh");