Revision c15c5ea2

View differences:

src/sunstone/public/app/tabs/images-tab/actions.js
2 2
  var Sunstone = require('sunstone');
3 3
  var Notifier = require('utils/notifier');
4 4
  var Locale = require('utils/locale');
5
  var OpenNebulaImage = require('opennebula/image');
5
  var OpenNebulaResource = require('opennebula/image');
6 6
  var CommonActions = require('utils/common-actions');
7 7

  
8 8
  var RESOURCE = "Image";
......
11 11
  var CREATE_DIALOG_ID = require('./form-panels/create/formPanelId');
12 12
  var CLONE_DIALOG_ID = require('./dialogs/clone/dialogId');
13 13

  
14
  var _commonActions = new CommonActions(OpenNebulaImage, RESOURCE, TAB_ID, XML_ROOT);
14
  var _commonActions = new CommonActions(OpenNebulaResource, RESOURCE, TAB_ID, XML_ROOT);
15 15

  
16 16
  var _actions = {
17 17
    "Image.create" : _commonActions.create(CREATE_DIALOG_ID),
......
42 42
    },
43 43
    "Image.clone" : {
44 44
      type: "single",
45
      call: OpenNebulaImage.clone,
45
      call: OpenNebulaResource.clone,
46 46
      error: Notifier.onError,
47 47
      notify: true
48 48
    }

Also available in: Unified diff