Skip to content

Commit 1b47834

Browse files
committed
Merge pull request #86 from TF2Stadium/v0.3.3-alpha
v0.3.3-alpha
2 parents 4aca369 + 1842a2e commit 1b47834

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"angular-scroll-glue": "~2.0.6",
1414
"angular-ui-router": "~0.2.15",
1515
"clipboard": "~1.5.3",
16-
"wsevent.js": "~0.0.4"
16+
"wsevent.js": "~1.0.0"
1717
},
1818
"devDependencies": {
1919
"angular-mocks": "~1.4.7"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "GPL-3.0",
55
"repository": "https://github.com/TF2Stadium/Frontend",
66
"readme": "readme.md",
7-
"version": "0.3.2",
7+
"version": "0.3.3",
88
"dependencies": {
99
"del": "~1.2.0",
1010
"uglify-save-license": "~0.4.1",

src/app/pages/lobby/lobby.factory.js

+19-10
Original file line numberDiff line numberDiff line change
@@ -228,23 +228,32 @@
228228
localStorage.setItem('tabCommunication', '');
229229
localStorage.setItem('tabCommunication', 'closeDialog');
230230
});
231-
232-
Notifications.notifyBrowser({
233-
title: 'Click here to ready up!',
234-
body: 'All the slots are filled, ready up to start',
235-
timeout: 30,
236-
callbacks: {
237-
onclick: function () {
238-
$window.focus();
231+
Settings.getSettings(function (settings) {
232+
Notifications.notifyBrowser({
233+
title: 'Click here to ready up!',
234+
body: 'All the slots are filled, ready up to start',
235+
soundFile: '/assets/sound/lobby-readyup.wav',
236+
soundVolume: settings.soundVolume * 0.01,
237+
timeout: 30,
238+
callbacks: {
239+
onclick: function () {
240+
$window.focus();
241+
}
239242
}
240-
}
243+
});
241244
});
242245
});
243246

244247
Websocket.onJSON('lobbyStart', function (data) {
245248
factory.lobbyJoinInformation = data;
246-
$state.go('lobby-page', {lobbyID: factory.lobbySpectatedId});
247249
$rootScope.$emit('lobby-start');
250+
Notifications.toast({
251+
message: 'Your lobby has started!',
252+
actionMessage: 'Go back',
253+
action: function () {
254+
factory.goToLobby(factory.lobbyJoinedId);
255+
}
256+
});
248257
Settings.getSettings(function (settings) {
249258
Notifications.notifyBrowser({
250259
title: 'Lobby is starting!',

src/app/pages/settings/section-theme.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ <h1>Theme</h1>
77
{{theme.name}}
88
</md-radio-button>
99
</md-radio-group>
10-
10+
</div>
11+
<div class="settings-section">
1112
<h1>Chat</h1>
1213
<h2>Timestamps</h2>
1314
<md-radio-group

0 commit comments

Comments
 (0)