Skip to content

Commit

Permalink
GUI Storage size enhancements: do not display error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rodichenko committed Jul 28, 2023
1 parent cdea198 commit bd1b51b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/src/components/special/storage-size/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import {
message,
Tooltip,
Icon,
Modal,
Spin
Modal
} from 'antd';
import {computed, observable} from 'mobx';
import {inject, observer} from 'mobx-react';
Expand Down Expand Up @@ -83,7 +82,7 @@ function InfoTooltip ({sizes, isNFS}) {
/>
</Tooltip>
);
};
}

@inject('preferences')
@observer
Expand Down Expand Up @@ -183,9 +182,9 @@ class StorageSize extends React.PureComponent {
const request = new DataStoragePathUsage(id);
await request.fetch();
if (request.error) {
message.error(request.error, 5);
}
if (request.value) {
console.warn(request.error);
this.info = null;
} else if (request.value) {
this.info = request.value;
} else {
this.info = null;
Expand All @@ -211,7 +210,8 @@ class StorageSize extends React.PureComponent {
const disclaimer = preferences.storageSizeRequestDisclaimer || REFRESH_REQUESTED_MESSAGE;
message.info(disclaimer, 7);
} catch (e) {
message.error(e.message, 5);
console.warn(e.message);
message.error('Error re-indexing storage', 5);
}
}
};
Expand Down

0 comments on commit bd1b51b

Please sign in to comment.