• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / gui / 891984097

pending completion
891984097

Pull #3741

gitlab-ci

mzedel
chore: made use of common truth function across codebase to remove code duplication

Signed-off-by: Manuel Zedel <manuel.zedel@northern.tech>
Pull Request #3741: MEN-6487 - fix: added more granular check for device troubleshooting feature

4401 of 6401 branches covered (68.75%)

26 of 27 new or added lines in 8 files covered. (96.3%)

1702 existing lines in 165 files now uncovered.

8060 of 9779 relevant lines covered (82.42%)

123.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/js/components/common/dialogs/confirmdismisshelptips.js
1
// Copyright 2019 Northern.tech AS
2
//
3
//    Licensed under the Apache License, Version 2.0 (the "License");
4
//    you may not use this file except in compliance with the License.
5
//    You may obtain a copy of the License at
6
//
7
//        http://www.apache.org/licenses/LICENSE-2.0
8
//
9
//    Unless required by applicable law or agreed to in writing, software
10
//    distributed under the License is distributed on an "AS IS" BASIS,
11
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
//    See the License for the specific language governing permissions and
13
//    limitations under the License.
14
import React from 'react';
15
import { connect } from 'react-redux';
16

17
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';
18

19
import helptooltips from '../../../../assets/img/helptooltips.png';
20
import { setOnboardingCanceled, setShowDismissOnboardingTipsDialog } from '../../../actions/onboardingActions';
21

22
export const ConfirmDismissHelptips = ({ setOnboardingCanceled, setShowDismissOnboardingTipsDialog }) => (
3✔
23
  <Dialog open={true}>
1✔
24
    <DialogTitle>Dismiss the Getting Started help?</DialogTitle>
25
    <DialogContent>
26
      <p>Hide the help tips? You haven&apos;t finished your first update yet.</p>
27
      <p>You can always show the help again later by selecting the option from the top menu:</p>
28
      <div className="flexbox centered">
29
        <img src={helptooltips} />
30
      </div>
31
    </DialogContent>
32
    <DialogActions>
UNCOV
33
      <Button onClick={() => setShowDismissOnboardingTipsDialog(false)}>Cancel</Button>
×
34
      <div style={{ flexGrow: 1 }} />
35
      <Button variant="contained" color="secondary" onClick={setOnboardingCanceled}>
36
        Yes, hide the help
37
      </Button>
38
    </DialogActions>
39
  </Dialog>
40
);
41

42
const actionCreators = { setOnboardingCanceled, setShowDismissOnboardingTipsDialog };
3✔
43

44
export default connect(null, actionCreators)(ConfirmDismissHelptips);
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc