Bugzilla – Bug 5803
Saving a new playlist doesn't provide a delete option
Last modified: 2007-11-21 09:45:28 UTC
There is a bit of an inconsistency with Saving a playlist. When pressed, the current playlist is saved to "Untitled" straight away. The left-hand browse panel shows the playlist with "Save" and "Edit" buttons, but no "Delete" button. This makes it look like the playlist has not actually been saved yet, as it is waiting for a playlist name. If the user doesn't hit Save but instead navigates eleswhere, he may assume that the playlist has not been saved, only to find an "Untitled" playlist in the future. Only after navigating back to the "Untitled" playlist is the "Delete" button displayed.
Untitled needs to be saved as we need an object id, which only gets created on save. however, the proper solution should be to delete it if the user does not save, or rename when a proper name is given.
this may be a simple solution. Enabling the delete button even when playlist is "untitled". It is probably much simpler tan trying to figure out how to delete the "untitled" when a user browses elsewhere. Index: server/HTML/EN/browse_playlist.html =================================================================== --- server/HTML/EN/browse_playlist.html (revision 13787) +++ server/HTML/EN/browse_playlist.html (working copy) @@ -13,7 +13,7 @@ <td>[% "NAME" | string %] <input class="stdedit" name="newname" value="[% IF newname; newname; ELSE; playlist.title; END %]" size="[% maxInputSize ? maxInputSize : 40 %]"></td> <td><input class="stdclick" name="submit" type=submit value="[% "SAVE" | string %]" onclick='this.form.renamePlaylist.value=1'></td> <td><input class="stdclick" type="submit" value="[% "EDIT" | string %]" onclick='this.form.editPlaylist.value=1'></td> - [% IF playlist.title && playlist.title != untitledString %] + [% IF playlist.title %] <td><input class="stdclick" type="submit" value="[% "DELETE" | string %]" onclick='this.form.deletePlaylist.value=1'></td> [% END %] </tr><tr>
the above patch is in trunk at change 14818
Marking fixed, please test and reopen if it still happens.