Commit 02d1c3c0 authored by Francesco Carraro's avatar Francesco Carraro
Browse files

minor fixes

parent 59a498f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
		<operation type="GetSampleDataValues">Materials/GetSampleDataValues</operation>
		<!-- USER SETTINGS -->
		<operation type="GetFitFunctions">UserSettings/GetFitFunctions</operation>
		<operation type="GetUserSettings">UserSettings/GetUserSetting</operation>
		<operation type="GetUserSetting">UserSettings/GetUserSetting</operation>
		<operation type="GetUserSettingsByWildcard">UserSettings/GetUserSettingsByWildcard</operation>
		<operation type="SetUserSetting">UserSettings/SetUserSetting</operation>
		<!-- EXTSERVICES -->
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
  <Identity
    Name="INAF.Apps.Uwp.SLabDataManager"
    Publisher="CN=INAF-IAPS, O=INAF, C=IT"
    Version="1.0.30.0" />
    Version="1.0.31.0" />

  <mp:PhoneIdentity PhoneProductId="07F38165-05DE-4ED7-8514-60D1E8CDCBFE" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels
            foreach (var colorResponse in colorsResponse.Responses)
            {
                string key = colorResponse.Key.Replace("_", string.Empty).ToLowerInvariant();
                settingsHelper.save(key, colorResponse.Value);
                settingsHelper.save(key, string.Join(string.Empty, "#FF", colorResponse.Value));
            }
        }
        #endregion
+2 −0
Original line number Diff line number Diff line
@@ -808,6 +808,8 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels
            logger.Write<MainViewModel>($"Saving spectrum: {spectrum.Filename}", Serilog.Events.LogEventLevel.Information);
            var remoteOperationsManager = serviceProvider.GetRequiredService<RemoteOperationsManager>();

            /* required for saving on cloud the spectrum */
            spectrum.setPointsFromElements();
            SaveSpectrumOfTypeRawRequestModel saveSpectrumRequest = new SaveSpectrumOfTypeRawRequestModel()
            {
                SpectrumFile = spectrum.ToSpectrumFile(),
+1 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels

        public async Task saveColorForSpectrumAsync(string hexcolor)
        {
            hexcolor = hexcolor.Substring(3, hexcolor.Length - 3); // remove the starting #FF which cause misleading reading in webapp.
            var remoteOperationsManager = serviceProvider.GetRequiredService<RemoteOperationsManager>();
            var genericResponseModel = await remoteOperationsManager.setUserSettingAsync(new KeyValueRequestModel() { Key = selectedSpectrumType.Type.ToColorKeyForCloud(), Value = hexcolor });
            settingsHelper.save(selectedSpectrumType.Type.ToColorKey(), hexcolor);