aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/Events.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-03 10:57:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-06-03 10:57:09 +1200
commit9ecabbef669cbd1a91490f4872d4c220b54e37a4 (patch)
tree7d2afe2b865dc5f9f10faa5ce7d213a219afa82a /web/app/store/Events.js
parent06a746b44dae69b0c84a5302f92a1bcbe2dc827f (diff)
parent0271fa29703f24df24756c117209b9b04e127fc3 (diff)
downloadtrackermap-server-9ecabbef669cbd1a91490f4872d4c220b54e37a4.tar.gz
trackermap-server-9ecabbef669cbd1a91490f4872d4c220b54e37a4.tar.bz2
trackermap-server-9ecabbef669cbd1a91490f4872d4c220b54e37a4.zip
Merge pull request #1992 from Abyss777/master
Show events in web interface with toasts
Diffstat (limited to 'web/app/store/Events.js')
-rw-r--r--web/app/store/Events.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/web/app/store/Events.js b/web/app/store/Events.js
new file mode 100644
index 000000000..54b341d30
--- /dev/null
+++ b/web/app/store/Events.js
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+Ext.define('Traccar.store.Events', {
+ extend: 'Ext.data.Store',
+ model: 'Traccar.model.Event',
+
+ proxy: {
+ type: 'rest',
+ url: '/api/events'
+ }
+});