diff --git a/app/Commands/EditTrackCommand.php b/app/Commands/EditTrackCommand.php index e98a280f..e4f38fb7 100644 --- a/app/Commands/EditTrackCommand.php +++ b/app/Commands/EditTrackCommand.php @@ -178,7 +178,7 @@ class EditTrackCommand extends CommandBase ]); } - if (isset($this->_input['hwc_submit']) && new \DateTime() < new \DateTime("2016-12-18 00:00:00")) { + if (isset($this->_input['hwc_submit']) && new \DateTime() < new \DateTime("2016-12-20 23:59:59")) { $playlist = Playlist::where('user_id', 22549)->first(); if ($this->_input['hwc_submit'] == 'true') { diff --git a/public/templates/directives/track-editor.html b/public/templates/directives/track-editor.html index e052aa6e..10a5af36 100644 --- a/public/templates/directives/track-editor.html +++ b/public/templates/directives/track-editor.html @@ -108,7 +108,7 @@
-
+
diff --git a/resources/assets/scripts/app/directives/track-editor.coffee b/resources/assets/scripts/app/directives/track-editor.coffee index 118f42a7..260230dc 100644 --- a/resources/assets/scripts/app/directives/track-editor.coffee +++ b/resources/assets/scripts/app/directives/track-editor.coffee @@ -33,6 +33,8 @@ module.exports = angular.module('ponyfm').directive 'pfmTrackEditor', () -> $scope.isAdmin = auth.data.isAdmin albumsDb = {} + $scope.disableHwc = new Date < new Date('2016-12-20 23:59:59') + $scope.data = upload $scope.userSlug = $state.params.slug