Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
removed the delete button from the user management philips has remove…
Browse files Browse the repository at this point in the history
…d the possibility to remove users from the local api.
  • Loading branch information
Hyrules committed Apr 11, 2019
1 parent 94f661b commit 5a1a840
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion HueLib2Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.663.0")]
[assembly: AssemblyVersion("1.0.664.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
3 changes: 3 additions & 0 deletions WinHue3/Build/README_TEMPLATE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Changed:
Updated :
-

Removed :
- Delete button of the User management window. Philips has now removed the possibility for the API users to remove users. You need to user philips portal to do so : https://account.meethue.com/apps

WIP:
- Animation creator. (Not Available yet)
- Entertainment creator. (not Available yet)
Expand Down
2 changes: 1 addition & 1 deletion WinHue3/Functions/User Management/Form_ManageUsers.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<xctk:WatermarkTextBox x:Name="WatermarkTextBox" HorizontalAlignment="Left" Margin="281,43,0,0" TextWrapping="Wrap" Text="{Binding UsersModel.Devtype}" VerticalAlignment="Top" Width="326" Watermark="{x:Static resx:GUI.ManageUsers_DeviceType}" MaxLength="19"/>
<xctk:WatermarkTextBox x:Name="WatermarkTextBox1" HorizontalAlignment="Left" Margin="280,10,0,0" TextWrapping="Wrap" Text="{Binding UsersModel.ApplicationName}" VerticalAlignment="Top" Width="327" Watermark="{x:Static resx:GUI.ManageUsers_Username}" MaxLength="20" />
<Button x:Name="BtnDone" Content="{x:Static resx:GUI.Button_Done}" HorizontalAlignment="Left" Margin="554,290,0,0" VerticalAlignment="Top" Width="68" Click="btnDone_Click"/>
<Button x:Name="BtnDelete" Content="{x:Static resx:GUI.Button_Delete}" HorizontalAlignment="Left" Margin="281,290,0,0" VerticalAlignment="Top" Width="75" Background="Red" Command="{Binding DeleteCommand}"/>
<Button x:Name="BtnDelete" Content="{x:Static resx:GUI.Button_Delete}" HorizontalAlignment="Left" Margin="281,290,0,0" VerticalAlignment="Top" Width="75" Background="Red" Command="{Binding DeleteCommand}" Visibility="Collapsed"/>
<Button x:Name="BtnAddUser" Content="{x:Static resx:GUI.Button_Add}" HorizontalAlignment="Left" Margin="442,290,0,0" VerticalAlignment="Top" Width="107" Command="{Binding AddUserCommand}"/>
<Label x:Name="LblLastUsed" Content="{x:Static resx:GUI.ManageUsers_LastUsed}" HorizontalAlignment="Left" Margin="281,83,0,0" VerticalAlignment="Top" Width="114"/>
<Label x:Name="LblCreate" Content="{x:Static resx:GUI.ManageUsers_CreateDate}" HorizontalAlignment="Left" Margin="281,113,0,0" VerticalAlignment="Top" Width="114"/>
Expand Down
1 change: 1 addition & 0 deletions WinHue3/Functions/User Management/ManageUsersViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private bool CanDeleteUser()
return SelectedUser != null;
}

[Obsolete]
private async Task Delete()
{
bool cr = await _bridge.RemoveUserAsyncTask(UsersModel.Key);
Expand Down
2 changes: 2 additions & 0 deletions WinHue3/Philips Hue/BridgeObject/Bridge_Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ public async Task<string> CreateUserAsyncTask(string deviceType)
/// </summary>
/// <param name="username">Username to remove</param>
/// <returns>True or false if the user has been removed.</returns>
[Obsolete]
public bool RemoveUser(string username)
{

Expand All @@ -277,6 +278,7 @@ public bool RemoveUser(string username)
/// </summary>
/// <param name="username">Username to remove</param>
/// <returns>True or false if the user has been removed.</returns>
[Obsolete]
public async Task<bool> RemoveUserAsyncTask(string username)
{
string url = BridgeUrl + "/config/whitelist/" + username;
Expand Down
2 changes: 1 addition & 1 deletion WinHue3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.4426.0")]
[assembly: AssemblyVersion("3.0.4428.0")]
//[assembly: AssemblyFileVersion("3.0.*")]
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
2 changes: 1 addition & 1 deletion whc/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.519.0")]
[assembly: AssemblyVersion("1.0.520.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

0 comments on commit 5a1a840

Please sign in to comment.