From 8148beb00a82096b1d41f81bd5b3019fa75de2e9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 26 Apr 2015 13:42:07 +1200 Subject: Add buttons to device panel --- web/DeviceView.js | 20 ++++++++++++++++++++ web/Styles.js | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/web/DeviceView.js b/web/DeviceView.js index a99e20fd4..09174467c 100644 --- a/web/DeviceView.js +++ b/web/DeviceView.js @@ -20,6 +20,26 @@ Ext.define('DeviceView', { title: Strings.device_title, + + initComponent: function() { + + this.tbar = [{ + text:'Add' + }, { + text:'Edit' + }, { + text:'Remove' + }, { + xtype: 'tbfill' + }, { + text:'Settings' + }, { + text:'Logout' + }]; + + this.callParent(); + }, + store: { proxy: { type: 'ajax', diff --git a/web/Styles.js b/web/Styles.js index ea154ba2e..a77a0b0bf 100644 --- a/web/Styles.js +++ b/web/Styles.js @@ -19,7 +19,7 @@ Ext.define('Styles', { panel_padding: 10, - device_width: 300, + device_width: 400, map_center: [ -0.1275, 51.507222 ], map_zoom: 6, -- cgit v1.2.3