Browse Source

Fixed issue when you can't edit songs/queuesongs in admin

theflametrooper 8 years ago
parent
commit
186057d763
2 changed files with 10 additions and 1 deletions
  1. 9 0
      backend/logic/actions/news.js
  2. 1 1
      frontend/components/Modals/EditSong.vue

+ 9 - 0
backend/logic/actions/news.js

@@ -12,6 +12,15 @@ module.exports = {
 	},
 
 	newest: (session, cb) => {
+		// db.models.news.create({
+		// 	title: 'Beta',
+		// 	description: 'Remember to let us know in Discord if you notice anything odd!',
+		// 	upcoming: ['Private Playlists', 'Christmas Magic', 'Reports'],
+		// 	bugs: ['Mobile Responsiveness',	'Station Name Overflow'],
+		// 	improvements: ['No more Meteor Glitches!'],
+		// 	createdAt: Date.now(),
+		// 	createdBy: 'Jonathan (Musare Lead Developer)'
+		// });
 		db.models.news.findOne({}).sort({ createdAt: 'desc' }).exec((err, news) => {
 			if (err) throw err;
 			else cb({ status: 'success', data: news });

+ 1 - 1
frontend/components/Modals/EditSong.vue

@@ -86,7 +86,7 @@
 
 			</section>
 			<footer class='modal-card-foot'>
-				<a class='button is-success' @click='$parent.save(editing.song)'>
+				<a class='button is-success' @click='$parent.save($parent.editing.song)'>
 					<i class='material-icons save-changes'>done</i>
 					<span>&nbsp;Save</span>
 				</a>