Revision 404ccab2 ui/static/snf/js/ui/web/ui_single_view.js

b/ui/static/snf/js/ui/web/ui_single_view.js
117 117

  
118 118
        show_next: function() {
119 119
            this.current_vm++;
120
            if (this.current_vm >= storage.vms.length) {
120
            if (this.current_vm >= storage.vms.models.length) {
121 121
                this.current_vm = 0;
122 122
            }
123

  
123 124
            this.update_current_vm();
125
            this.show_current();
124 126
            this.__update_layout();
125 127
        },
126 128

  
......
130 132
                this.current_vm = storage.vms.length - 1;
131 133
            }
132 134
            this.update_current_vm();
135
            this.show_current();
133 136
            this.__update_layout();
134 137
        },
135 138

  

Also available in: Unified diff